package cn.edu.cimv.dao.entity;

import org.springframework.stereotype.Repository;

import java.util.Date;

/**
 * Created by 门铎 on 2016/6/27.
 */
@Repository
public class News extends Statusable {
    private int id;
    private String title;
    private String date;
    private String content;
    private String flag;
    private String pic; //首页图片链接
    private String st;
    private String projectType;
    private String summer;
    private int newOrNotices;

    public int getNewOrNotices() {
        return newOrNotices;
    }

    public void setNewOrNotices(int newOrNotices) {
        this.newOrNotices = newOrNotices;
    }

    public String getSummer() {
        return summer;
    }

    public void setSummer(String summer) {
        this.summer = summer;
    }

    public String getProjectType() {
        return projectType;
    }

    public void setProjectType(String projectType) {
        this.projectType = projectType;
    }

    public String getSt() {
        return st;
    }

    public void setSt(String st) {
        this.st = st;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getDate() {
        return date;
    }

    public void setDate(String date) {
        this.date = date;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public String getFlag() {
        return flag;
    }

    public void setFlag(String flag) {
        this.flag = flag;
    }

    public String getPic() {
        return pic;
    }

    public void setPic(String pic) {
        this.pic = pic;
    }

    @Override
    public String toString() {
        final StringBuilder sb = new StringBuilder("News{");
        sb.append("id=").append(id);
        sb.append(", title='").append(title).append('\'');
        sb.append(", date='").append(date).append('\'');
        sb.append(", content='").append(content).append('\'');
        sb.append(", flag='").append(flag).append('\'');
        sb.append(", pic='").append(pic).append('\'');
        sb.append('}');
        return sb.toString();
    }
}
